#
def get_total(a=0, b=0, c=0):
    print(a + b + c)
get_total(6000, 3000, 500)
get_total(6000, 3000)
get_total(6000)
get_total()
#
def mysql_get_connect(host='127.0.0.1', port='3306'):
    pass
mysql_get_connect()

#
def add(*args):
    print(args)
    total = 0
    for item in args:
        total += item
    print(total)
add(1, 2)
add(1, 2, 3, 4, 5)
add(1, 2, 3, 4, 5, 6, 7)

#
def fn(**kwargs):
    print(kwargs)
    total = 0
    for item in kwargs.values():
        total += item
    print(total)
fn(chines=2000, math=56,english=89, history=800)
fn(chines=789, math=34, thding=90)
fn(a=1, b=2, c=3)

def fun(*args, **kwargs):
    print(args)
    print(kwargs)
    t1 = 0
    for item in args:
        t1 += item
    print(t1)
    t2 = 0
    for item in kwargs.values():
        t2 += item
    print(t2)
    total = t1 + t2
    print(total)
fun(1, 2, 3, 4, a=5, b=6, c=7)


